package com.snaildesign.countdown.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Set;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="TAG_LIB"
 *     
*/
public class TagLib implements Serializable {

    /** identifier field */
    private String tagId;

    /** nullable persistent field */
    private String tagName;

    /** nullable persistent field */
    private BigDecimal clicks;

    /** nullable persistent field */
    private String remarks;

    /** persistent field */
    private Set userTags;

    /** full constructor */
    public TagLib(String tagId, String tagName, BigDecimal clicks, String remarks, Set userTags) {
        this.tagId = tagId;
        this.tagName = tagName;
        this.clicks = clicks;
        this.remarks = remarks;
        this.userTags = userTags;
    }

    /** default constructor */
    public TagLib() {
    }

    /** minimal constructor */
    public TagLib(String tagId, Set userTags) {
        this.tagId = tagId;
        this.userTags = userTags;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="TAG_ID"
     *         
     */
    public String getTagId() {
        return this.tagId;
    }

    public void setTagId(String tagId) {
        this.tagId = tagId;
    }

    /** 
     *            @hibernate.property
     *             column="TAG_NAME"
     *             length="30"
     *         
     */
    public String getTagName() {
        return this.tagName;
    }

    public void setTagName(String tagName) {
        this.tagName = tagName;
    }

    /** 
     *            @hibernate.property
     *             column="CLICKS"
     *             length="22"
     *         
     */
    public BigDecimal getClicks() {
        return this.clicks;
    }

    public void setClicks(BigDecimal clicks) {
        this.clicks = clicks;
    }

    /** 
     *            @hibernate.property
     *             column="REMARKS"
     *             length="100"
     *         
     */
    public String getRemarks() {
        return this.remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    /** 
     *            @hibernate.set
     *             lazy="true"
     *             inverse="true"
     *             cascade="none"
     *            @hibernate.collection-key
     *             column="TAG_ID"
     *            @hibernate.collection-one-to-many
     *             class="com.snaildesign.countdown.model.UserTag"
     *         
     */
    public Set getUserTags() {
        return this.userTags;
    }

    public void setUserTags(Set userTags) {
        this.userTags = userTags;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("tagId", getTagId())
            .toString();
    }

}
